home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 52
/
Amiga Format AFCD52 (Issue 136, May 2000).iso
/
-serious-
/
programming
/
c
/
stormamiga_lib-v45_00d
/
include
/
assert.h
< prev
next >
Wrap
C/C++ Source or Header
|
2000-02-28
|
604b
|
34 lines
#ifndef _INCLUDE_ASSERT_H
#define _INCLUDE_ASSERT_H
/*
** $VER: assert.h 1.02 (7.2.97)
** StormC Release 3.0
**
** '(C) Copyright 1995/96/97 Haage & Partner Computer GmbH'
** All Rights Reserved
*/
#ifdef NDEBUG
#define assert(C)
#else
#ifdef __cplusplus
extern "C" {
#endif
void do_assert(char *, char *, char *, unsigned int);
#ifdef __cplusplus
}
#endif
#define assert(C) { if(!(C)) do_assert(#C, __FILE__, __FUNC__, __LINE__); }
#endif
/*----- support for stormamiga.lib -----*/
#ifdef STORMAMIGA
#ifndef ASSERT_STORMAMIGA_H
#include <assert_stormamiga.h>
#endif
#endif
#endif